﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CourseScheduling.DataAccess
{
    public class CSProfessorPreference:CSDataObject
    {
        
        public int Id
        {
            get
            {
                return (int)this["id"];
            }
            set
            {
                this["id"] = value;
            }
        }

        public string NNumber
        {
            get
            {
                return SafeGetString(this["NNumber"]);
            }
            set
            {
                this["NNumber"] = value;
            }
        }


        public DateTime Date
        {
            get
            {
                return (DateTime)this["Date"];
            }
            set
            {
                this["Date"] = value;
            }
        }

        public int NumCourses
        {
            get
            {
                return (int)this["NumberofCourses"];
            }
            set
            {
                this["NumberofCourses"] = value;
            }
        }

        public string Semester
        {
            get
            {
                return SafeGetString(this["Term"]);
            }
            set
            {
                this["Term"] = value;
            }
        }


        public int Year
        {
            get
            {
                return (int)this["Year"];
            }
            set
            {
                this["Year"] = value;
            }
        }

        public bool CourseRelease
        {
            get
            {
                return (bool)this["CourseRelease"];
            }
            set
            {
                this["CourseRelease"] = value;
            }
        }

        public bool Sabbatical
        {
            get
            {
                return (bool)this["SabbaticalExpected"];
            }
            set
            {
                this["SabbaticalExpected"] = value;
            }
        }

        public bool Leave
        {
            get
            {
                return (bool)this["ProfDevLeave"];
            }
            set
            {
                this["ProfDevLeave"] = value;
            }
        }

        public int CourseRank
        {
            get
            {
                return (int)this["CourseRank"];
            }
            set
            {
                this["CourseRank"] = value;
            }
        }

        public int DayOfWeekRank
        {
            get
            {
                return (int)this["DaysofWeekRank"];
            }
            set
            {
                this["DaysofWeekRank"] = value;
            }
        }

        public int TimeOfDayRank    
        {
            get
            {
                return (int)this["TimesofDayRank"];
            }
            set
            {
                this["TimesofDayRank"] = value;
            }
        }

        public int MorningRank
        {
            get
            {
                return (int)this["MorningRank"];
            }
            set
            {
                this["MorningRank"] = value;
            }
        }


        public int AfternoonRank
        {
            get
            {
                return (int)this["AfternoonRank"];
            }
            set
            {
                this["AfternoonRank"] = value;
            }
        }

        public int EveningRank
        {
            get
            {
                return (int)this["EveningRank"];
            }
            set
            {
                this["EveningRank"] = value;
            }
        }
        

    }
}